package rensoft.android.view.grid;

import static rensoft.java.lang.Lang.map;

import rensoft.java.collections.Map;
import rensoft.java.event.Event;


public class LocalRowData implements RowData {

  private final Map<String, Object> data = map();

  @Override
  public Event<Void> eventLoaded() {
    return null;
  }

  @Override
  public String getString(String key) {
    return (String) data.value(key);
  }

  @Override
  public boolean isDone() {
    return true;
  }

  public void setString(String key, CharSequence value) {
    data.put(key, value.toString());
  }

}
